package com.yj.timecapsule.mapper;

import com.yj.timecapsule.entity.user.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UsersMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Users record);

    int insertSelective(Users record);

    Users selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);
    Users selectByPhone(String phone);

    List<Users> selectByIds(@Param("ids") List<Long> friendsIdList);

    List<Users> selectByIdsAndKeyWord(@Param("ids") List<Long> userIds, @Param("keyWord") String keyWord);

    List<Users> findByIdIn(@Param("ids") List<Long> list);
}